package com.huas.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Transient;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Article {
    private Integer id;
    private String title;
    private String category;
    private String content;
    private String description;
    private Integer authorId;
    private LocalDateTime createTime;
    //注解表示该字段不在数据库中，是用来作页面渲染的
    @Transient
    private String author;
}
